package pages.popup;

import listdata.ListData;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.RadioChoice;

import dataprovider.CustomerChoiceRender;

public class CustomerLOVPages extends WebPage {

	public CustomerLOVPages(){
		final RadioChoice rdoCustomer = getRdoCustomer();
		
		
		Form form = new Form("formCustomerLOV");
		
		form.add(rdoCustomer);
		add(form);
	}
	
	private RadioChoice getRdoCustomer(){
		RadioChoice rdoCustomer = new RadioChoice("rdoCustomer");
		rdoCustomer.setChoices(ListData.fillCustomerList());
		rdoCustomer.setChoiceRenderer(new CustomerChoiceRender());
		return rdoCustomer;
	}
	
}
